<template>
  <el-form ref="form" :model="form" label-width="100px" size="medium">
    <el-form-item label="需求名称">
      <el-input v-model="form.name" placeholder="请填写需求的名称"></el-input>
    </el-form-item>
    <el-form-item label="详细介绍">
      <el-input v-model="form.desc" type="textarea"></el-input>
    </el-form-item>
    <el-form-item label="提出人">
      <el-input v-model="form.name"></el-input>
    </el-form-item>
    <el-form-item label="优先级">
      <el-radio-group v-model="form.resource">
        <el-radio label="p1"></el-radio>
        <el-radio label="p2"></el-radio>
        <el-radio label="p3"></el-radio>
      </el-radio-group>
    </el-form-item>
    <el-form-item label="期望完成时间">
      <el-date-picker
        v-model="value1"
        placeholder="请选择一个日期"
        type="date"
      ></el-date-picker>
    </el-form-item>
    <el-form-item>
      <el-button round type="primary" @click="onSubmit">提交</el-button>
    </el-form-item>
  </el-form>
</template>

<script lang="ts">
export default {
  data() {
    return {
      form: {
        name: '',
        region: '',
        date1: '',
        date2: '',
        delivery: false,
        type: [],
        resource: '',
        desc: '',
      },
    }
  },
  methods: {
    onSubmit() {
      console.log('submit!')
    },
  },
}
</script>
<style></style>
